package csci4448.android.workouttracker;

public abstract class Session {
	private int _id;
	private long _durationSeconds;
	protected double _distanceTravelledMeters;
	private String _startTime;
	private String _endTime;
	private String _sessionName;
	public Session(int SessionID, long DurationSeconds, double DistanceMeters, String StartTime, String EndTime, String SessionName)
	{
		_id = SessionID;
		_durationSeconds = DurationSeconds;
		_distanceTravelledMeters = DistanceMeters;
		_startTime = StartTime;
		_endTime = EndTime;
		_sessionName = SessionName;
	}
	public int getId(){
		return _id;
	}
	public long getDurationSeconds(){
		return _durationSeconds;
	}
	public void setDurationSeconds(long DurationSeconds){
		_durationSeconds = DurationSeconds;
	}
	public void setDistanceMeters(double DistanceMeters)
	{
		_distanceTravelledMeters = DistanceMeters;
	}
	public double getStorageDistance()
	{
		return _distanceTravelledMeters;
	}
	public abstract double getDistance();
	public abstract double getAverageSpeed();
	public abstract String getDurationString();
	public abstract String getSpeedString();
	public abstract String getSpeedString(double Speed);
	public abstract String getDistanceString();
	public String getStartTime(){
		return _startTime;
	}
	public String getEndTime(){
		return _endTime;
	}
	public void setEndTime(String EndTime){
		_endTime = EndTime;
	}
	public String getSessionName(){
		return _sessionName;
	}
	public void setSessionName(String SessionName)
	{
		_sessionName = SessionName;
	}
}
